#!/bin/bash

# 拉取子模块
git submodule update --init --recursive

pip install torch==1.11.0

echo "==================== PyTorch 1.11.0 Installed ===================="

pip install transformers

pip install opencv-python

echo "==================== OpenCV Installed ===================="

pip install modelscope

pip install "modelscope[cv]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html

echo "==================== ModelScope OpenCV Version Installed ===================="

pip install mmcv-full

echo "==================== mmcv Installed ===================="
# 安装 yolov5 的依赖
pip install -r ./yolov5/requirements.txt

echo "==================== Yolo5 Requirements Installed ===================="

pip install nicegui pywebview

echo "Installed Successfully     Ready to Run"

python3 no_qt.py
